/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.FlightAdjustProtect;
import com.sasis.dao.FlightAdjustProtectDao;
import com.sasis.service.FlightAdjustProtectManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class FlightAdjustProtectManagerImpl extends BaseManager implements FlightAdjustProtectManager {
    private FlightAdjustProtectDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setFlightAdjustProtectDao(FlightAdjustProtectDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.FlightAdjustProtectManager#getFlightAdjustProtects(com.sasis.model.FlightAdjustProtect)
     */
    public List getFlightAdjustProtects(final FlightAdjustProtect flightAdjustProtect) {
        return dao.getFlightAdjustProtects(flightAdjustProtect);
    }

    /**
     * @see com.sasis.service.FlightAdjustProtectManager#getFlightAdjustProtect(String id)
     */
    public FlightAdjustProtect getFlightAdjustProtect(final String id) {
        return dao.getFlightAdjustProtect(new Integer(id));
    }

    /**
     * @see com.sasis.service.FlightAdjustProtectManager#saveFlightAdjustProtect(FlightAdjustProtect flightAdjustProtect)
     */
    public int saveFlightAdjustProtect(FlightAdjustProtect flightAdjustProtect) {
       return dao.saveFlightAdjustProtect(flightAdjustProtect);
    }

    /**
     * @see com.sasis.service.FlightAdjustProtectManager#removeFlightAdjustProtect(String id)
     */
    public void removeFlightAdjustProtect(FlightAdjustProtect flightAdjustProtect) {
        dao.removeFlightAdjustProtect( flightAdjustProtect);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
